//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Parsing
{
    abstract class Keyword : Token
    {
        public abstract Keyword Create();
        public override string ToString()
        {
            return Name();
        }
        public abstract string Name();
        public override bool Equals(object other)
        {
            if (other is Keyword)
                return Equals((Keyword)other);
            return false;
        }
        public bool Equals(Keyword other)
        {
            return other.GetType() == GetType();
        }
        public override int GetHashCode()
        {
            return GetType().GetHashCode();
        }
    }


}




